package com.xqit.ydzhkt.api;

import com.xqit.ydzhkt.common.response.HttpResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by Janus on 2020/5/30
 *
 * 登录API
 */
@Api(tags = "用户模块",description = "LoginController - 用户登录/退出")
public interface LoginApi {


    //登录
    @ApiOperation(value = "用户登录",notes = "返回当前登录用户信息")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "query",name = "username",value = "用户名",required = true, dataType = "String"),
            @ApiImplicitParam(paramType = "query",name = "password",value = "用户密码",required = true, dataType = "String"),
            @ApiImplicitParam(paramType = "query",name = "code",value = "微信code",required = true, dataType = "String")
    })
    public HttpResult login(@RequestParam(value = "username" ,required = true)String username,
                            @RequestParam(value = "password",required = true)String password,
                            @RequestParam(value = "code",required = true)String code);

}
